﻿<html>
<head>
<title></title>
</head>
<body>
<input type="button" onclick="loadurl()" value="跳转" />
<input type="button" onclick="showAlert()" value="警告" />
<input type="button" onclick="showConfirm()" value="确认" />
<input type="button" onclick="showPrompt()" value="输入" />
</body>
<script type="text/javascript">
function loadurl(){
	<!--document.location="http://www.baidu.com";-->
	document.location="js://webview?arg1=111&arg2=222";
}

function showAlert(){
<!--alert("这是一个警告框");-->
alert("js://jumpActivityB?id=123");
}

function showConfirm(){
    var res = confirm("请选择");
    if(res==true){
        document.write("你点击了确定");
    }else{
        document.write("你点击了取消");
    }
}

function showPrompt(){
    <!--var name = prompt("名称","jack");-->
    var name = prompt("js://getName");
    if(name!=null && name!=""){
    document.write("hello"+name);
    }
}

</script>
</html>